package com.liuqi.iot.domain.mapper;

import com.liuqi.common.base.domain.mapper.BaseMapper;
import com.liuqi.iot.bean.dto.AlarmDTO;
import com.liuqi.iot.bean.query.AlarmQuery;
import com.liuqi.iot.domain.entity.AlarmEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 报警数据库操作服务 
 * @author Coder Generator 2025-03-24 17:08:23 
 **/
@Mapper
public interface AlarmMapper extends BaseMapper<AlarmEntity> {
    List<AlarmDTO> query(AlarmQuery query);

    void addAlarmCount(@Param("id") String id);

    /**
     * 关闭设备报警
     *
     * @param deviceId  设备id
     * @param defineIds 报警定义id
     */
    void closeAlarms(@Param("deviceId") String deviceId, @Param("defineIds") List<String> defineIds);
}